package com.WISSC.commen;

import com.WISSC.bean.IndividualEvent;
import com.WISSC.bean.User;
import org.springframework.context.annotation.Configuration;
import javax.servlet.http.HttpSession;

/**
 * @author 张子艺
 * @packge com.controller.config
 * @data 2019-01-08 15:51
 * @project Currency
 */
@Configuration
public class BaseController {
    public User getUser(HttpSession session) {
        User user=   (User) session.getAttribute("user");
        return user;
    }

}
